﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _15.模板模式.Base
{
    public abstract class CameraBase
    {
        /// <summary>
        /// 模板方法
        /// </summary>
        public void Initialize()
        {
            DoInitialize();
            DoStart();
        }

        public abstract void DoInitialize();
        public abstract void DoStart();

        public ImageBuffer Trigger()
        {
            Console.WriteLine("获取一张图像！");

            return new ImageBuffer();
        }
    }
}
